<%@page import="br.com.bean.DisciplinaTurmaBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@page import="br.com.bean.DisciplinaTurmaBean"%>
<%@page import="br.com.controller.DisciplinaTurmaController"%>
<%@page import="br.com.connection.ConnectionFactory"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.util.List"%>

<%Connection conn = new ConnectionFactory().getConnection();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<table id="tabela" style="text-align: center;">
	<caption>Disciplinas cadastradas</caption>
	<tr>
		<th>Disciplina</th>
		<th>Carga Horária</th>
	</tr>	
<%
int turma = Integer.parseInt(request.getParameter("id"));
List<DisciplinaTurmaBean> info = DisciplinaTurmaController.infoDiscTurma(conn, turma);
for (DisciplinaTurmaBean list : info) {
%>
	<tr>
		<td><%=list.getId_diciplina().getDisciplina() %></td>
		<td><%=list.getCargahr() %></td>
	</tr>	
<%} %>
</table>
</body>
</html>